import request from '@/utile/request.js'
// import store from '@/store/index.js'
const allChannelListAPI = () => {
  return request({
    url: '/v1_0/channels'
  })
}
const updateChannelListAPI = ({ channels }) => {
  request({
    url: '/v1_0/user/channels',
    method: 'PUT',
    /*  headers: {
      Authorization: `Bearer ${store.state.token}`
    }, */

    data: {
      channels
    }
  })
}
export { allChannelListAPI, updateChannelListAPI }
